{load href="__module__/admin/index/index.css" /}
<title>
    后台管理
</title>
<div class="layui-header">
    <div class="layui-logo">
        后台管理
    </div>
</div>
<div class="layui-side layui-bg-black layui-nav-side">
    <div class="layui-side-scroll">
        {foreach $menulist as $menu_list}
        <ul class="layui-nav layui-nav-tree" lay-filter="layui_nav_menu" lay-unselect="">
            {foreach $menu_list as $menu}
            {if $menu['route'] && !isset($menu['sub'])}
            <li class="layui-nav-item">
                <a href="javascript:void(0);" lay-id="{$menu['id']}" lay-url="{$menu['route']}">
                    <i class="fa {$menu['icon'] ? $menu['icon'] : 'fa-file'}">
                    </i>
                    <span>
                        {$menu['name']}
                    </span>
                </a>
            </li>
            {else}
            <li class="layui-nav-item">
                <a href="javascript:void(0);">
                    <i class="fa {$menu['icon'] ? $menu['icon'] : 'fa-file'}">
                    </i>
                    <span>
                        {$menu['name']}
                    </span>
                </a>
                <dl class="layui-nav-child">
                    {foreach $menu['sub'] as $sub}
                    <dd>
                        <a href="javascript:void(0);" lay-id="{$sub['id']}" lay-url="{$sub['route']}">
                            <i class="fa {$sub['icon'] ? $sub['icon'] : 'fa-file'}">
                            </i>
                            <span>
                                {$sub['name']}
                            </span>
                        </a>
                    </dd>
                    {/foreach}
                </dl>
            </li>
            {/if}
            {/foreach}
        </ul>
        {/foreach}
    </div>
</div>
<div class="layui-body">
    <div class="header-right">
        <ul class="layui-nav layui-layout-left" lay-filter="layui_nav_left">
            {foreach $modules as $k=>$v}
            <li class="layui-nav-item">
                <a href="javascript:void(0);">
                    {$v}
                </a>
            </li>
            {/foreach}
        </ul>
        <ul class="layui-nav layui-layout-right" lay-filter="layui_nav_right">
            <li class="layui-nav-item">
                <a href="javascript:void(0);">
                    {:get_field('admin_admin', session('admin_id'), 'username')}
                </a>
                <dl class="layui-nav-child">
                    <dd>
                        <a href="javascript:void(0);">
                            退出登录
                        </a>
                    </dd>
                </dl>
            </li>
        </ul>
    </div>
    <div class="tab-container">
        <div class="layui-tab layui-tab-brief" lay-filter="laytab">
            <div class="tab-tool">
                选项卡操作
                <i class="fa fa-caret-down">
                </i>
            </div>
            <div class="tab-tool-body layui-anim layui-anim-upbit">
                <ul>
                    <li>
                        刷新当前页
                    </li>
                    <hr/>
                    <li>
                        关闭当前页
                    </li>
                    <hr/>
                    <li>
                        关闭其他页
                    </li>
                    <hr/>
                    <li>
                        关闭所有页
                    </li>
                </ul>
            </div>
            <ul class="layui-tab-title">
            </ul>
            <div class="layui-tab-content">
            </div>
        </div>
    </div>
</div>
<div class="layui-footer">
    技术支持
    <i class="fa fa-copyright">
    </i>
    山东不争网络科技有限公司
</div>
{load href="__module__/admin/index/index.js" /}
